﻿using System;
using System.Windows.Forms;
using Microsoft.VisualBasic.ApplicationServices;

namespace VietNamKey
{
    internal static class Program
    {
        private static frmMain frmMain;

        /// <summary>
        ///     The main entry point for the application.
        /// </summary>
        [STAThread]
        private static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            SingleInstance.Run(frmMain = new frmMain(), StartupNextInstanceHandler);
        }

        public static void StartupNextInstanceHandler(object sender, StartupNextInstanceEventArgs e)
        {
            frmMain.Show();
        }
    }
}